package cn.edu.lzzy.mypractices.repository;

import cn.edu.lzzy.mypractices.entity.Option;
import cn.edu.lzzy.mypractices.entity.Question;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

public interface OptionRepository extends JpaRepository<Option, UUID> {
    public List<Option> findAllByQuestion(Question question);
    public List<Option> findAllByQuestionId(UUID question);

}
